﻿@model DiffPlex.DiffBuilder.Model.DiffPaneModel

@using DiffPlex.DiffBuilder.Model

<div class="diffPane">
    <table cellpadding="0" cellspacing="0" class="diffTable">
        @foreach (DiffPiece diffLine in Model.Lines) {
            string divClass = string.Format("line {0}Line", diffLine.Type.ToString());
            if (diffLine.Position.HasValue) {
                <tr>
                    <td class="lineNumber">
                        @diffLine.Position.ToString()
                    </td>
                    <td class="@divClass">
                        <span class="lineText">
                            @{Html.RenderPartial("DiffLine", diffLine);}
                        </span>
                    </td>
                </tr>
            }
            else {
                <tr>
                    <td class="lineNumber">
                        "&nbsp;"
                    </td>
                    <td class="@divClass">
                        <span class="lineText">
                            @{Html.RenderPartial("DiffLine", diffLine);}
                        </span>
                    </td>
                </tr>
            }
         }
    </table>
</div>